s = input().strip()[::-1]; v = [] if s[0] != 'O' or 'OO' in s or {*s} != {*'OE'}: print('INVALID'), exit(0) for i in range(4, 100, 2): n = 1<